//
//  TPBaseNavigationViewController.m
//  TradingPlatform
//
//  Created by 程强 on 15/10/23.
//  Copyright © 2015年 程强. All rights reserved.
//

#import "TPBaseNavigationViewController.h"

@interface TPBaseNavigationViewController ()

@end

@implementation TPBaseNavigationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBar.barTintColor = [UIColor colorWithRed:185/255.0 green:0 blue:18/255.0 alpha:1];
    self.navigationBar.tintColor = [UIColor whiteColor];
    self.navigationBar.translucent = NO;
    
    //UITextAttributeFont
    //UITextAttributeTextColor
    NSDictionary *navTitleArr = [NSDictionary dictionaryWithObjectsAndKeys:
                                 [UIFont boldSystemFontOfSize:16],NSFontAttributeName,
                                 [UIColor whiteColor],NSForegroundColorAttributeName,
                                 nil];
    [self.navigationBar setTitleTextAttributes:navTitleArr];
    
    [self.navigationItem.leftBarButtonItem setTitleTextAttributes :[ NSDictionary dictionaryWithObjectsAndKeys :
                                                  [ UIFont systemFontOfSize:15.0 ], NSFontAttributeName ,
                                                  [ UIColor whiteColor ], NSForegroundColorAttributeName ,
                                                                    nil ]forState : UIControlStateNormal];
    [self.navigationItem.rightBarButtonItem setTitleTextAttributes :[ NSDictionary dictionaryWithObjectsAndKeys :
                                                                    [ UIFont systemFontOfSize:15.0 ], NSFontAttributeName ,
                                                                    [ UIColor whiteColor ], NSForegroundColorAttributeName ,
                                                                    nil ]forState : UIControlStateNormal];
    
    self.interactivePopGestureRecognizer.enabled = YES;
//    self.navigationController.interactivePopGestureRecognizer.delegate = self;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
